package com.china08.yxyapi.repository.mg.esbag;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import com.china08.yxyapi.entity.mg.esbag.YxyEsbagTeachingPerformance;

public interface YxyEsbagTeachingPerformanceRepository extends MongoRepository<YxyEsbagTeachingPerformance, String> {

    YxyEsbagTeachingPerformance findBySchoolIdAndTeacherIdAndStudentIdAndClassIdAndPackId(String schoolId,
            String userId, String studentId, String classId, String packId);

    YxyEsbagTeachingPerformance findBySchoolIdAndTeacherIdAndPackIdAndStudentIdAndClassId(String schoolId,
            String userId, String id, String studentId, String classId);

    YxyEsbagTeachingPerformance findById(String id);

    List<YxyEsbagTeachingPerformance> findByPackId(String packId);

    Page<YxyEsbagTeachingPerformance> findByTeacherIdAndSchoolIdAndPackIdAndClassId(String userId, String schoolId,
            String id, String classId, Pageable pageable);

    List<YxyEsbagTeachingPerformance> findByTeacherIdAndSchoolIdAndPackIdAndPerformanceAndClassId(String userId,
            String schoolId, String id, int i, String classId);

}
